/*
 * user_battery_manager.h
 *
 *  Created on: Sep 12, 2023
 *      Author: dk007
 */

#ifndef INCLUDE_USER_BATTERY_MANAGER_H_
#define INCLUDE_USER_BATTERY_MANAGER_H_
#include "user_config.h"

#if USER_BATTERY_MANAGER_EN
uint8_t user_battery_manager_init(void);
uint8_t user_battery_manager_uninit(void);
uint32_t get_voltage(void);
uint32_t  get_voltage_by_adc(uint16_t saadc_val);
uint8_t get_battery_percent_value(uint32_t *u32_battery_value );
uint16_t get_static_bat_value_mv(void);
uint8_t get_static_bat_percent(void);
#else
#define user_battery_manager_init(...)
#define user_battery_manager_uninit(...)
#endif

#if USER_CHARGE_EN
void charge_full_detetion_init(void);
void charge_full_detetion_uninit(void);
#endif

#endif /* INCLUDE_USER_BATTERY_MANAGER_H_ */
